< previous page page_204 next page >

Page 204
A nonlinear operation computes new pixel values using some method other than multiplication by constants. One type of nonlinear filter is the rank filter.
To compute an output value, a rank filter sorts the pixel values in part of the image by their brightness. It then selects one value based on its position in the sorted list and uses that pixel's value for the output value. Filters that select the brightest, darkest, or median value are called maximum, minimum, and median filters, respectively.
You can use a median filter to reduce the noise in an image. If the noise is randomly distributed, it will usually not be the median value when the filter examines an area of the picture. The median filter selects few of the noisy values so the noise is reduced.
On the other hand, the median filter changes the values of many correct pixels, so you lose some resolution in the image. Figure 7.10 shows a noisy image before and after it has been processed using a median filter.
Minimum and maximum ranking filters also produce interesting results. These filters change many of an image's pixel values significantly, but you can still get a sense of the image's overall composition. Both of these filters give an impressionistic quality. Figure 7.11 shows the Filter program using a minimum ranking filter.
Geometric Transformations
Geometric transformations change the physical positioning of the pixels in an image. The most straightforward geometric transformation is translation, or moving an image from one location to another. More complicated transformations include scaling, stretching, reflection, and rotation. The sections that follow discuss these and other geometric transformations.
0204-01.jpg
Figure 7.10
Applying a median filter to an image can reduce its noise.

 
< previous page page_204 next page >